// import { setRequestConfig } from "@/utils/request.js";

// 调用setRequestConfig函数进行请求配置
// setRequestConfig();

const http = uni.$u.http;

// 获取 opoenID
export const fetchOpenId = (code) => http.get(`/pay/openId?jsCode=${code}`);

// 创建订单
export const sendCreateOrder = (data) => http.post(`/pay/createOrder`, data);

// 创建订单
export const sendTestApi = (data) => http.post(`/backend/test`, data);
